MetadataNodeReader.GetDescriptions Method ()

Gets a collection of general description values that matches the current culture.

Parent Type: MetadataNodeReader

Namespace: Microsoft.LearningComponents.Manifest

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public ReadOnlyCollection<string> GetDescriptions ()

Return Value

The descriptions that best match the current culture, or an empty collection if no descriptions exist.

Exceptions
Exception type Condition
InvalidPackageException

This is the first call to this method, and the metadata is located in a metadata file that can not be found.

Remarks

This <description> blocks in the metadata should each contain consistent language strings, or unpredictable values may be returned from this method.

Note that an InvalidPackageException may be thrown on the first call to this method. If this happens, subsequent calls do not throw additional exceptions. Instead, an empty collection is returned.

If Location is an absolute URI, this method returns an empty collection because absolute URI is not supported.